package com.petmall.cart.feign;

import com.qianji.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author liang zai
 * @date 2022/4/18 15:19
 * @description
 */
@FeignClient("petmall-product")
public interface ProduceFeignService {
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R getSkuInfo(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skusaleattrvalue/attrvalue/{skuId}")
    List<String> getSkuSaleAttrValues(@PathVariable("skuId")Long skuId);
}
